import request from "../axios.js";
import { baseUrl } from "@/config/env";

export function login(data) {
  return request({
    url: baseUrl + "/SysUser/login",
    method: "post",
    data,
  });
}

export function logout() {
  return request({
    url: baseUrl + "/SysUser/logout",
    method: "delete",
  });
}

// 用户注册
export function register(data) {
  return request({
    url: baseUrl + "/SysUser/register",
    method: "post",
    data,
  });
}
